package com.qys.livesMall.app.user.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qys.livesMall.app.user.model.dto.sys.SysUserStatisticsPageDTO;
import com.qys.livesMall.app.user.model.dto.sys.UserRechargeDTO;
import com.qys.livesMall.app.user.model.entity.UserStatisticsInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qys.livesMall.app.user.model.vo.WithdrawalsStatisticsVO;
import com.qys.livesMall.app.user.model.vo.sys.H2ShopStatisticsInfoVo;
import com.qys.livesMall.app.user.model.vo.sys.SysUserStatisticsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户统计表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2023-08-01
 */
public interface UserStatisticsInfoMapper extends BaseMapper<UserStatisticsInfo> {

    UserStatisticsInfo selectByUserId(Long userId);

    Page<SysUserStatisticsVo> pageSys(@Param("page") Page<SysUserStatisticsVo> page,@Param("pageDTO") SysUserStatisticsPageDTO pageDTO);

    List<WithdrawalsStatisticsVO> getUserStatisticsInfos(@Param("userids") List<Long> userids);

    List<H2ShopStatisticsInfoVo> getShopListByUserid(@Param("userids") List<Long> userids);

    List<UserStatisticsInfo> getListByUserid(@Param("userids") List<Long> userids);
}
